CC=gcc
CFLAGS= -g -Wall
LIBS=

TARGETS = sizeof address pthread binary_search queen float pollechoserver echoclient 

.PHONY:all clean

all:$(TARGETS)

sizeof:sizeof.c
	$(CC) $(CFLAGS) $(LIBS) $^ -o $@

address:address.c
	$(CC) $(CFLAGS) $(LIBS) $^ -o $@

pthread:pthread.c
	$(CC) $(CFLAGS) -pthread $(LIBS) $^ -o $@

binary_search:binary_search.c
	$(CC) $(CFLAGS) $(LIBS) $^ -o $@

queen:queen.c
	$(CC) $(CFLAGS) $(LIBS) $^ -o $@

float:float.c
	$(CC) $(CFLAGS) $(LIBS) $^ -o $@

pollechoserver:pollechoserver.c
	$(CC) $(CFLAGS) $(LIBS) $^ -o $@

echoclient:echoclient.c
	$(CC) $(CFLAGS) $(LIBS) $^ -o $@

clean:
	@rm -rf $(TARGETS) 
